.class Lcom/waiqin365/lightapp/syorder/x;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v7, 0x0

    const/4 v6, 0x0

    const/4 v5, 0x1

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/syorder/b/a/o;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/b/a/o;->b()Z

    move-result v1

    if-eqz v1, :cond_4

    iget-object v1, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->b:Ljava/lang/String;

    if-eqz v1, :cond_3

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->a(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    move-result-object v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->a(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->q()I

    move-result v2

    if-lez v2, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->a(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->f()Ljava/util/List;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    new-instance v2, Lcom/waiqin365/lightapp/kehu/b/o;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/kehu/b/o;-><init>()V

    iget-object v3, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->f:Ljava/lang/String;

    iput-object v3, v2, Lcom/waiqin365/lightapp/kehu/b/o;->a:Ljava/lang/String;

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v3, v4}, Lcom/waiqin365/base/login/mainview/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcom/waiqin365/lightapp/kehu/b/o;->b:Ljava/lang/String;

    iget-object v3, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->g:Ljava/lang/String;

    iput-object v3, v2, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->a(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/waiqin365/lightapp/syorder/view/SyImagePreview;->a(Lcom/waiqin365/lightapp/kehu/b/o;)V

    new-instance v2, Landroid/content/Intent;

    const-string/jumbo v3, "android.intent.action.RUN"

    invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    const-class v4, Lcom/fiberhome/upload/UpLoadService;

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    iget-object v3, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v3, v2}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_0
    iget-object v2, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->dismissProgressDialog()V

    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->b(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/waiqin365/lightapp/syorder/SyOrderDetailActivity;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "orderNo"

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "isFromPush"

    invoke-virtual {v2, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v0, "isConfirmOrder"

    invoke-virtual {v2, v0, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_1

    const-string/jumbo v3, "pics"

    move-object v0, v1

    check-cast v0, Ljava/io/Serializable;

    invoke-virtual {v2, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    :cond_1
    const-string/jumbo v0, "menuId"

    const-string/jumbo v1, ""

    invoke-virtual {v2, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-static {}, Lcom/waiqin365/lightapp/syorder/ap;->a()Lcom/waiqin365/lightapp/syorder/ap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/syorder/ap;->e()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const-class v1, Lcom/waiqin365/lightapp/syorder/SyOrderCartActivity;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v1, Lcom/waiqin365/lightapp/syorder/SyOrderDetailActivity;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v1

    const-string/jumbo v3, "close_activity"

    invoke-virtual {v1, v3, v7, v0}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    const-string/jumbo v1, "\u4fdd\u5b58\u6210\u529f\uff01"

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->showToast(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->c(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Z

    move-result v0

    if-eqz v0, :cond_2

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "type"

    sget-object v3, Lcom/fiberhome/gaea/client/a/e;->a:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v0, v1, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesRecordDetailActivity;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v3, Lcom/waiqin365/lightapp/visit/SeniorVisitRecordDetailActivity;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v3

    const-string/jumbo v4, "reinit_activity"

    invoke-virtual {v3, v4, v0, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->finish(Z)V

    goto/16 :goto_0

    :cond_2
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v0

    const-string/jumbo v1, "reinit_activity"

    const-class v3, Lcom/waiqin365/lightapp/syorder/SyOrderListActivity;

    invoke-virtual {v0, v1, v7, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->d(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->c:Ljava/lang/String;

    invoke-static {v1, v0, v6}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;->d(Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/syorder/x;->a:Lcom/waiqin365/lightapp/syorder/SyOrderInfoActivity;

    iget v0, v0, Lcom/waiqin365/lightapp/syorder/b/a/o;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x3f0
        :pswitch_0
    .end packed-switch
.end method
